import re


def remove_punctuation(value):
    return re.sub(r'[!#? ]', '', value)


if __name__ == '__main__':
    # s = ("您好，欢迎来到我的博客：https://blog.csdn.net/weixin_44799217,,,###,,,我的邮箱是：535646343@qq.com. "
    #      "Today is 2021/12/21. It is a wonderful DAY!")
    # #  只匹配单一字母
    # ret = re.sub(r'[a-z]', "*", s)
    # print(ret)
    # ret = re.sub(r'[A-Z]', "*", s)
    # print(ret)
    # ret = re.sub(r'[a-zA-Z]', "*", s)
    # print(ret)
    # ret = re.sub(r'[A-z]', "*", s)
    # print(ret)
    res = remove_punctuation('##ddd   dd')
    print(res)